package xby.study.annotations.util;

public class TestEnclosingClass {


    static {
        Kit k = new Kit() {
            @Override
            public void run() {
                System.out.println("i am running");
            }
        };

        System.out.println(k.getClass().getEnclosingClass());
        System.out.println(k.getClass().getDeclaringClass());

    }
    public static void main(String[] args) {
        System.out.println("hhhh");


    }



}

 abstract class Kit {
    abstract void run ();
}

